home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000216_news@columbia.edu_Mon Apr 24 14:22:39 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA29387
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 24 Apr 1995 10:22:46 -0400
  3. Received: by apakabar.cc.columbia.edu id AA14964
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 24 Apr 1995 10:22:43 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: arrow keys and www?
  9. Date: 24 Apr 1995 14:22:39 GMT
  10. Organization: Columbia University
  11. Lines: 77
  12. Message-Id: <3ngc7f$ejh@apakabar.cc.columbia.edu>
  13. References: <3n2s56$rb4@news-2.csn.net>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <3n2s56$rb4@news-2.csn.net>, Gideon Weisz <gweisz@csn.net> wrote:
  18. > this has to be a VEry simple problem, so apologies in advance, but i am
  19. > stuck.  in www, using lynx, with mskermit 3.14 and vt220 (and hebrew
  20. > macro) the arrow keys do not work right.  to move among highlighted
  21. > links, one is supposed to use the up/down arrows and to move among
  22. > levels the left/right keys.  however, if i use right-arrow, i get "do
  23. > you wish to send a comment" if i use left-arrow it is taken as a command
  24. > to download down-arrow moves me up! (up the screen to the last
  25. > highlight) how can i get out of this cleftstick?
  26. >
  27. Kermit is emulating a real VT220 terminal.
  28.  
  29. The VT220 cursor (arrow) keypad can be in one of two modes: cursor mode and
  30. application mode.  These keys send different escape sequences depending on
  31. which mode they are in.  When a VT220 is turned on (and when Kermit is
  32. started), the arrow keys are in cursor mode.
  33.  
  34. By default (that is, unless you give SET KEY commands to change things),
  35. MS-DOS Kermit uses the IBM keyboard arrow keys as the VT220 arrow keys.
  36. Each arrow key has a "verb" assigned to it:
  37.  
  38.   Up arrow      \Kuparr
  39.   Down arrow    \Kdnarr
  40.   Right arrow   \Krtarr
  41.   Left arrow    \Klfarr
  42.  
  43. These verbs track the cursor keypad mode automatically, and send the
  44. following escape sequences:
  45.  
  46.                Cursor Mode   Application Mode
  47.  
  48.   \Kuparr        CSI A           SS3 A
  49.   \Kdnarr        CSI B           SS3 B
  50.   \Krtarr        CSI C           SS3 C
  51.   \Klfarr        CSI D           SS3 D
  52.  
  53. where CSI is ESC followed by left bracket ([) on a 7-bit connection or
  54. decimal 155 on an 8-bit connection, and SS3 is ESC followed by O
  55. (uppercase letter O) on a 7-bit connection and decimal 143 on an 8-bit
  56. connection.
  57.  
  58. How does the cursor keypad mode change?  The host can change it by
  59. sending special escape sequences, or you can change it yourself by using
  60. the command:
  61.  
  62.   SET TERMINAL ARROW-KEYS { CURSOR, APPLICATION }
  63.  
  64. So why do the arrow keys not work in Lynx?  Or, in general, in any
  65. particular application:
  66.  
  67.  1. Because the application expects the keypad to be in one mode when it
  68.     is in the other mode.  This is a deficiency on the part of the
  69.     application.  Applications should never ASSUME which mode the cursor
  70.     keypad is in, but rather, they should PUT the keypad in the desired
  71.     mode, or else they should accept arrow-key codes from either mode.
  72.     Workaround: tell Kermit to SET TERM ARROW CURSOR (or APPLICATION).
  73.  
  74.  2. Because of a terminal-type mismatch.  Lynx, in particular, does not
  75.     seem to use the standard termcap/terminfo database, and so therefore
  76.     might not understand Kermit's VT220 or VT320 terminal type.  Solution:
  77.     tell Kermit to SET TERM TYPE VT100 and also tell the host your
  78.     terminal type is VT100, before starting Lynx.
  79.  
  80.  3. Because of a character-size mismatch.  If you have been using a
  81.     VMS-based VT220 or VT320 fullscreen application (such as ALEPH, EVE,
  82.     etc), you might find that your arrow keys are sending 8-bit codes
  83.     rather than 7-bit codes, and then when switching to another
  84.     application like Lynx, the new application might not understand the
  85.     8-bit codes.  Again, this is a deficiency of the application.
  86.     Workaround: tell Kermit to SET TERM CONTROLS 7.
  87.  
  88. I put MS-DOS Kermit into Hebrew mode, accessed the ALEPH software, tried
  89. the arrow keys and they worked OK.  Then I left ALEPH and started Lynx and
  90. got the same symptoms you reported.  The three steps above fixed the
  91. problem.
  92.  
  93. - Frank